package com.mantru.iotpot.dao;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Environment;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;

import androidx.annotation.Nullable;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * 简单养锅配置表
 * 作者： cmh
 * 日期： 2025/06/03
 */

public class t_public_config_bring
{
    public String table_name = "t_public_config_bring";
    public String clean_id,clean1_data,clean2_data,clean3_data,clean4_data;
    public String create_sql = "create table t_public_config_bring(clean_id integer primary key, clean1_data text, clean2_data text, clean3_data text,clean4_data text)";
    public String drop_sql = "drop table t_public_config_bring";
    public String entity_sql = "1=1";
    public String list_sql = "select * from t_public_config_bring";
    public String delete_sql = "delete from t_public_config_bring where clean_id=? ";
    public String update_sql = "update t_public_config_bring set clean4_data=?";
    public String max_sql = "select ifnull(max(clean_id),0) as clean_id from t_public_config_clean";
    public String update_steepindex_sql = "update t_public_config_bring set steep_index=steep_index+1 where steep_index>=?";

    public String[] GetListValues()
    {
        String[] values = new String[0];
        return values;
    }

    public String[] GetEntityValues()
    {
        String[] values = new String[0];
        return values;
    }

    public String[] GetDeleteValues()
    {
        String[] values = new String[1];
        values[0] = clean_id;
        return values;
    }

    public String[] GetUpdateValues()
    {
        String[] values = new String[1];
        values[0] = clean4_data;
        return values;
    }

    public String[] GetUpdateSteepIndexValues()
    {
        String[] values = new String[1];
        values[0] = clean4_data;
        return values;
    }

    public ContentValues GetInsertContentValues()
    {
        ContentValues cv = new ContentValues();
        cv.put("clean_id", clean_id);
        cv.put("clean1_data", clean1_data);
        cv.put("clean2_data", clean2_data);
        cv.put("clean3_data", clean3_data);
        cv.put("clean4_data", clean4_data);
        return cv;
    }
}
